package com.tinywind.Sword.Dto;

public class Page {
	//从0开始
	public int currentPage;
	//一页的数据量
	public int pageSize;
	//总项目数
	public int totalCount;
	public boolean hasMore;
	
	public Page(int currentPage,int pageSize,int totalCount) {
		this.currentPage = currentPage;
		this.pageSize = pageSize;
		this.totalCount = totalCount;
		
		if((currentPage+1) * pageSize >= totalCount) {
			this.hasMore = false;
		}
		else {
			this.hasMore = true;
		}
	}
}
